package com.hwua.dao;

import com.hwua.entity.Product;
import com.hwua.entity.ProductExtend;
import com.hwua.entity.ShopCart;

import java.sql.SQLException;
import java.util.List;

public interface IShopCartDao {
    /**
     * 添加到购物车
     * @param shopCart
     * @return
     * @throws Exception
     */
    public int insert(ShopCart shopCart) throws Exception;

    public List<ProductExtend> queryShopCartByuid(int uid) throws Exception;

    /**
     * 删除购物车中的内容
     * @param id
     * @return
     * @throws Exception
     */
    public int delShopCart(int id) throws Exception;




    public List<ShopCart>getBypid(int pid) throws SQLException;

    public int updateShopCartItem(ShopCart shopCart) throws SQLException;

}
